<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>js location地址栏</title>
</head>
<body>
	<div class="mian">
		<h1>aaaaaaaaaaaaaaa</h1>
		
	</div>

	<script>
		//在lost正式网站环境中显示

		alert(location.host); //获取url中的域名
		
		
	</script>
</body>
</html>